﻿using System.Web.Mvc;

namespace SDCloudSolution.SDCloud.Web.Controllers
{
    public partial class HomeController : Controller
    {
        [AllowAnonymous]
        public virtual ActionResult Index()
        {
            if (!Request.IsAuthenticated)
            {
                return RedirectToAction(MVC.Account.Login());
            }

            return RedirectToAction(MVC.Dashboard.Index());
        }

        public virtual ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public virtual ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}